package com.sword.demo.quartz.service.impl;

import com.sword.demo.quartz.service.ClockService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * 时钟服务实现类
 * @author sword
 * @date 2022/11/17 17:11
 */
@Service
@Slf4j
public class ClockServiceImpl implements ClockService {
    @Override
    public void clock() {
        log.info(LocalDateTime.now().toString());
    }
}
